Skip to content

Land #6, #7 and #8 on main - #9

Merged
Adeolu05 merged 3 commits into
mainfrom
feat/language-picker
Oct 13, 2026
Merged

Adeolu05 merged 3 commits into
mainfrom
feat/language-picker

Conversation

@Adeolu05

Copy link
Copy Markdown
Owner

#6, #7 and #8 were stacked PRs. They were merged before GitHub retargeted them to main, so each one landed on the branch of the PR below it, and only #5 reached main.

This PR brings the three already-reviewed commits onto main unchanged:

No new code. After merging, the intermediate branches (feat/export-formats-and-fixes, fix/extract-reliability, fix/shared-limits-and-log-privacy, feat/language-picker) can be deleted.

🤖 Generated with Claude Code

Adeolu05 and others added 3 commits September 28, 2026 18:44
- Fetch the YouTube title via oEmbed, concurrently with captions, instead of
  a sequential watch-page scrape (up to 10s) before the caption request.
  Duration now comes from the guardrails' last-cue estimate.
- Carry a monotonic deadline from the API/bot into the fetch: every YouTube
  request is capped at the time left, IP-block retries never sleep past it,
  and Vimeo requests are bounded too. Timed-out extracts stop calling
  upstream instead of running on in the worker thread.
- New UPSTREAM_BLOCKED error code (503) for IpBlocked/RequestBlocked so the
  metrics dashboard separates proxy failures from videos without captions;
  YouTube timeouts map to UPSTREAM_TIMEOUT (504), network errors to a clear
  message instead of a 500.
- CI: lint, type-check, and build the web app.
- Web: remove seven unused components from an earlier homepage and fix the
  remaining lint errors (useHydrated replaces setState-in-effect guards).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… logs

- REDIS_URL (optional): extract/convert/events quotas are counted once
  across all Gunicorn workers and the Telegram bot instead of per process;
  Telegram format/timestamp preferences survive restarts (90-day TTL).
  Unset or unreachable Redis falls back to in-memory with a throttled warning.
- Docker Compose runs a small Redis; render.yaml takes REDIS_URL and
  generates LOG_HASH_SECRET.
- hash_identifier is now HMAC-keyed (plain SHA-256 of an IPv4 or Telegram ID
  is reversible by enumeration); rate-limit block logs no longer contain the
  raw client IP.
- Failure logs record the public video ID + host instead of a partially
  stripped URL (which lost the ID for watch?v= links and kept share tokens
  in youtu.be paths).
- Privacy page / bot copy: document IP-based limits, hashed log IDs, and
  Telegram preferences; caption cache lasts days (72h default), not hours.
- CI: Redis service container for real-server integration tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Web picker + Telegram /language: choose the transcript language; YouTube
  uses a native track or auto-translates, Vimeo picks the matching uploaded
  track. Responses say what came back (translated / fallback) and the UI
  explains it. Language list served from /api/v1/config.
- Correct Chinese handling: zh-Hans and zh-Hant no longer treated as equal.
- Cache key includes the language.
- Translation failures from blocks/timeouts now surface as errors instead of
  silently returning (and caching) original-language captions.
- PDFs: fonts chosen from the actual text. Embedded DejaVu Sans for
  Latin-extended/Cyrillic/Greek, built-in CID fonts for Chinese/Japanese,
  embedded Nanum Gothic for Korean; Arabic/Hebrew/Indic/Thai get a clear
  "PDF not available" (DOCX/TXT still work) instead of broken glyphs.
  Previously every PDF used Helvetica, so e.g. Polish or Russian text came
  out as empty boxes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Adeolu05 Adeolu05 mentioned this pull request Sep 28, 2026
2 of 4 tasks
@Adeolu05
Adeolu05 merged commit d00b198 into main Oct 13, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 443c6154 Deployed Sep 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant